<template>
  <div class="home">
    <mt-header fixed title="首页"></mt-header>
    <cmt-footer />
  </div>
</template>

<script>
import cmtFooter from '@/components/footer'
export default {
  name: 'Home',
  components: {
    cmtFooter
  },
  created() {
    this.isLogin();
  },
  methods: {
    isLogin() {
      if(!this.$store.state.isLogin) {
        this.$router.push('/login');
      }
    }
  }
}
</script>
